<template>
  <component :is="$store.state.layout"></component>
</template>
<script setup lang="ts">
import { useMessage } from "naive-ui";
import { useRouter } from "vue-router";
import $store from './store/index';
import { initGlobalRouter, initGlobalMessage } from "./utils/global";

const message = useMessage();
initGlobalMessage(message);
const router = useRouter();
initGlobalRouter(router);
</script>
<style scoped>
</style>